package com.lintpanzer.managers
{
	import com.lintpanzer.vo.Options;
	
	import flash.events.Event;
	import flash.events.IEventDispatcher;
	
	public class OptionsManager extends ManagerBase
	{
		private var _options:Options;
		
		public function OptionsManager(target:IEventDispatcher=null)
		{
			super(target);
			
			if (!_options){
				saveOptions(new Options());
			}
		}
		
		[Bindable (event="optionsChanged")]
		public function get options():Options{
			return _options;
		}
		
		public function saveOptions(value:Options):void{
			_options = value;
			dispatchEvent(new Event("optionsChanged"));
		}
	}
}